package org.example.order.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface CoverFileService {
    /// 接受图片，返回图片存储名称
    String upload(MultipartFile file) throws IOException;
    /// 将图片从临时目录转移到正式目录
    boolean validate(String filename) throws IOException;
    boolean delete(String name);
}
